<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <script>
            var count = 5;
            var counter = setInterval(timer, 1000); //1000 will  run it every 1 second
            function timer()
            {
                count = count - 1;
                if (count <= 0)
                {
                    clearInterval(counter);
                    document.getElementById("btn_back").click();
                    return;
                }
                //Do code for showing the number of seconds here
            }
        </script>
    </head>
    <body>
        <div id="info" style="margin-left: 25%; width: 50%;height: 120px; margin-top: 200px; text-align:center;background: red;opacity: 0.5;z-index: 1000;position: absolute" name="info">
            <h2><?php echo $msg; ?></h2>            
            <h4>sau 5 giây hệ thống không tự chuyển vui lòng click nút back</h4>
            <button style="opacity: 1;text-align: center;background: blue;color: red;" id="btn_back" onclick="history.go(-1);">Back </button>            

        </div>
    </body>
</html>
